package com.angel.bo.auth.server.feign;

import com.angel.bo.auth.server.feign.fallback.UserServiceFallBack;
import com.angel.bo.beans.admin.entity.User;
import com.angel.bo.common.msg.WebReturn;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "angel-admin",fallback = UserServiceFallBack.class)
public interface UserService {
    /**
     * @Author: Haibo.Mei [Haibo.Mei@ge.com]
     * @Description:
     * @Date: 13:30 2018/1/30
     */
    @RequestMapping(value = "/user/getUserInfoByLoginName",method = RequestMethod.POST)
    WebReturn<User> login(@RequestBody String loginName);
}
